package lab01;

public class Test13 {
    public static void main(String[] args) {
        int x;
        int units;
        int ten;
        int hundred;
        for (x=100; x<1000;x++ ) {
            units=x%10;
            ten=x/10%10;
            hundred=x/100%10;
            if (x==units*units*units+ten*ten*ten+hundred*hundred*hundred) {
                System.out.println("水仙花数是："+x);
            }
        }
    }
}
